package com.hgxd.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hgxd.entity.pojo.EquipmentArchives;

import com.hgxd.mapper.EquipmentArchivesMapper;
import com.hgxd.service.IEquipmentArchivesService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 设备档案表 服务实现类
 * </p>
 *
 * @author fsd
 * @since 2023-10-18
 */
@Service("EquipmentArchivesServiceImpl")
public class EquipmentArchivesServiceImpl extends ServiceImpl<EquipmentArchivesMapper, EquipmentArchives> implements IEquipmentArchivesService {
    @Resource
    EquipmentArchivesMapper equipmentArchivesMapper;

    @Override
    public List<Map<String, Object>> getAllOrganization() {
        return equipmentArchivesMapper.getAllOrganization();
    }

    @Override
    public List<EquipmentArchives> getAllEquipmentByOrganization(String organizationName) {
        return equipmentArchivesMapper.getAllEquipmentByOrganization(organizationName);
    }
}
